import request from '@/router/axios';

export const getReportHead = (treeId, type, time) => {
  return request({
    url: '/api/squirrel-airq/statreport22/getReportHead',
    method: 'get',
    params: {
      treeId,
      type,
      time
    }
  })
}

// current, size,
export const getList = ( treeId, type, time, params) => {
  return request({
    url: '/api/squirrel-airq/statreport22/getReport22List',
    method: 'get',
    params: {
        ...params,
        treeId,
        type,
        time,
    }
  })
}

export const toExport = ( treeId, type, time) => {
  return request({
    url: 'api/squirrel-airq/statreport22/export',
    method: 'get',
    params: {
        treeId,
        type,
        time,
    }
  })
}
